#include "stdafx.h"
#include "RFLanDeviceNet.h"
#include "include\RFLanDevice.h"

using namespace RFDeviceNet;

RFLanDeviceNet^ RFLanDeviceNet::CreateRFLanDevice()
{
	RFDevice::RFLanDevice* device = new RFDevice::RFLanDevice();
	RFLanDeviceNet^ dev = gcnew RFLanDeviceNet(device);
	return dev;
}

RFLanDeviceNet::RFLanDeviceNet(RFDevice::RFLanDevice* device) : RFDeviceObjectNet(device)
{
	_rfLanDevice = device;
}

RFLanDeviceNet::RFLanDeviceNet()
{	
	_rfLanDevice = new RFDevice::RFLanDevice();
}

RFLanDeviceNet::~RFLanDeviceNet()
{
	_rfLanDevice->~RFLanDevice();
	_rfLanDevice = NULL;
}

UINT RFLanDeviceNet::GetSocket()
{
	return _rfLanDevice->GetSocket();
}